<?php
namespace app\model;

class PayLog extends Base
{
    protected $name = 'pay_log';

    protected $dateFormat = 'Y-m-d H:i:s';

    public function getStatusTextAttr($value,$data){
        return $data['status'] == 1 ? '成功': '失败';
    }

    public function getTypeTextAttr($value,$data){
        return $data['type'] == 0 ? '消费': '增加';
    }

}